{include 'common/header.html'}
<body>
<header>
<ul>
<li><a href="{$this->urlCreate('admin','index')}" style="z-index: 50;">管理主页</a></li>
<li><a href="#" style="z-index: 49;">论坛管理</a></li>
</ul>
</header>

<div id="main">

<div id="subtitle">论坛列表</div>
{if(!empty($forums))}
<ol style="display: block;margin: 1em 2em 1em;">
{foreach $forums as $forum}

<li>{$forum['name']}&nbsp;[ <a href="{$this->urlCreate('admin','section',array('id'=>$forum['id']))}">管</a> | <a href="{$this->urlCreate('admin','forum_delete',array('id'=>$forum['id']))}" onclick="return confirm('确定删除？');">删</a> | <a href="{$this->urlCreate('admin','forum_change',array('id'=>$forum['id']))}">改</a> ]</li>

{/foreach}
</ol>
{else}

<div style="font-size: 1.2em;color: #EE7700;margin: 1em 2em 1em;">暂无论坛</div>

{/if}
<div id="subtitle">新建论坛</div>
<div id="box">
<form action="" method="post">
<label for="name">论坛名称</label>
<input type="text" id="name" name="name" style="margin: 1em;display: block;" />
<span style="display: block;margin: 3px 1em 3px;color: red;">{$tip}</span>
<input type="submit" name="submit" value="提交" style="margin: 1em;display: block;width: 64px;height: 24px;margin-left: 3em;" />
</form>
</div>
</div>
{include 'common/footer.html'}
</body>
</html>